home *** CD-ROM | disk | FTP | other *** search
/ Clickx 96 / Clickx 96.iso / software / tools / tool / xbmc-10.1.exe / addons / script.recentlyadded / changelog.txt < prev    next >
Encoding:
Text File  |  2011-03-08  |  2.7 KB  |  61 lines

  1. v 2.0.4 (Ppic):
  2. - add some corections for LatestSong fields
  3.  
  4. v 2.0.3 (Ppic):
  5. - restored album function (clic on random or recently added album will play the full album)
  6.   TO SKINNERS: the "playmedia" isn't needed for album, instead of that, "LatestSong.%d.Path" will be filled with command to run the script with albumid, then the script will make a playlist with all song of the album and play it ;)
  7.   
  8.   here is an example made by hitcher:
  9.   
  10.     made a custom button in the settings so the user can choose to use Albums -
  11.     
  12.     XML Code:
  13.     <control type="radiobutton" id="265">
  14.         <include>SettingsLabel</include>
  15.         <label>$LOCALIZE[31327]</label> <!--Enable Latest Albums (default Latest Songs)-->
  16.         <onclick>Skin.ToggleSetting(PlayAlbums)</onclick>
  17.         <selected>Skin.HasSetting(PlayAlbums)</selected>
  18.     </control> 
  19.     
  20.     Then used that condition when I run the script -
  21.     
  22.     XML Code:
  23.     <control type="button" id="5043">
  24.         <posx>-20</posx>
  25.         <posy>-20</posy>
  26.         <width>1</width>
  27.         <height>1</height>
  28.         <texturenofocus>-</texturenofocus>
  29.         <texturefocus>-</texturefocus>
  30.         <onfocus>XBMC.RunScript(script.recentlyadded,limit=10&albums=False&unplayed=True&totals=True&random=True)</onfocus>
  31.         <onfocus>SetFocus(300)</onfocus>
  32.         <visible>!Skin.HasSetting(PlayAlbums)</visible>
  33.     </control>
  34.     <control type="button" id="5043">
  35.         <posx>-20</posx>
  36.         <posy>-20</posy>
  37.         <width>1</width>
  38.         <height>1</height>
  39.         <texturenofocus>-</texturenofocus>
  40.         <texturefocus>-</texturefocus>
  41.         <onfocus>XBMC.RunScript(script.recentlyadded,limit=10&albums=True&unplayed=True&totals=True&random=True)</onfocus>
  42.         <onfocus>SetFocus(300)</onfocus>
  43.         <visible>Skin.HasSetting(PlayAlbums)</visible>
  44.     </control> 
  45.     
  46.     And finally in the actual control -
  47.     
  48.     XML Code:
  49.     <item id="10">
  50.         <icon>$INFO[Window.Property(LatestSong.1.Thumb)]</icon>
  51.         <label>$INFO[Window.Property(LatestSong.1.Album),, - ]$INFO[Window.Property(LatestSong.1.Title)]</label>
  52.         <onclick>$INFO[Window.Property(LatestSong.1.Path),PlayMedia(,)]</onclick>
  53.         <visible>!Skin.HasSetting(PlayAlbums) + !IsEmpty(Window.Property(LatestSong.1.Title))</visible>
  54.     </item>
  55.     <item id="10">
  56.         <icon>$INFO[Window.Property(LatestSong.1.Thumb)]</icon>
  57.         <label>$INFO[Window.Property(LatestSong.1.Album),, - ]$INFO[Window.Property(LatestSong.1.Artist)]</label>
  58.         <onclick>$INFO[Window.Property(LatestSong.1.Path)]</onclick>
  59.         <visible>Skin.HasSetting(PlayAlbums) + !IsEmpty(Window.Property(LatestSong.1.Artist))</visible>
  60.     </item>  
  61.